import Vue from "vue";
import locale from "vant/lib/locale/lang/zh-CN";
import {
  GoodsActionButton,
  Button,
  Field,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  Tabbar,
  TabbarItem,
  Form,
  Loading,
  List,
  Cell,
  Popup,
  GoodsAction,
  GoodsActionIcon,
  Stepper,
  Checkbox,
  Icon,
  Empty,
  Area,
  AddressList,
  AddressEdit,
  Toast,
  Tabs,
  Tab,
  Row,
  DropdownItem,
  DropdownMenu,
  Rate
} from "vant";
const components = [
  DropdownItem,
  DropdownMenu,
  GoodsActionButton,
  Button,
  Field,
  Swipe,
  SwipeItem,
  Grid,
  GridItem,
  Tabbar,
  TabbarItem,
  Form,
  Loading,
  List,
  Cell,
  Popup,
  GoodsAction,
  GoodsActionIcon,
  Stepper,
  Checkbox,
  Icon,
  Empty,
  Area,
  AddressList,
  AddressEdit,
  Toast,
  Tabs,
  Tab,
  Row,
  Rate
];
Toast.allowMultiple();
Toast.setDefaultOptions({
  forbidClick: true
});
components.forEach(c => Vue.use(c, locale));
